<?php
/**
 * Created by PhpStorm.
 * User: qishengqiang
 * Date: 2022-06-05
 * Time: 16:55
 */

namespace app\models;


class OrderExpress extends ModelBase
{
    protected $pk = 'orderExpressId';

    public function province()
    {
        return $this->hasOne(Provinces::class, 'provinceCode', 'provinceCode');
    }

    public function city()
    {
        return $this->hasOne(Cities::class, 'cityCode', 'cityCode');
    }

    public function area()
    {
        return $this->hasOne(Areas::class, 'areaCode', 'areaCode');
    }
}